package com.dd.cloud.user.entity.chknowl;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 方剂表
 * </p>
 *
 * @author czg
 * @since 2022-07-04
 */
@Data
@EqualsAndHashCode
@Accessors(chain = true)
@Table(comment = "书院方剂表")
public class ChknowlCurr implements Serializable {

    private static final long serialVersionUID = 1L;


    @TableId(value = "id", type = IdType.AUTO)
    @Column(isKey = true, isAutoIncrement = true)
    private Integer id;

    /**
     * 方剂名
     */
    @Column(comment = "方剂名", length = 32)
    private String name;

    /**
     * 出处
     */
    @Column(comment = "出处", length = 128)
    private String source;

    /**
     * 组成
     */
    @Column(comment = "组成", length = 512)
    private String constitute;

    /**
     * 功效
     */
    @Column(comment = "功效")
    private String effect;

    /**
     * 主治
     */
    @Column(comment = "主治")
    private String major;

    /**
     * 用法用量
     */
    @Column(comment = "用法用量",type = MySqlTypeConstant.TEXT)
    private String dosage;

    /**
     * 方歌
     */
    @Column(comment = "方歌")
    private String brotherFang;


    /**
     * 注意事项
     */
    @Column(comment = "注意事项",type = MySqlTypeConstant.TEXT)
    private String precautions;

//    /**
//     * 排序
//     */
//    @Column(comment = "排序")
//    private Integer sort;

    /**
     * 状态 1有效 0.下架 -1删除
     */
    @Column(comment = "状态 1.正常,0.下架 -1删除", length = 4)
    private Integer status;

    /**
     * 类型 1.常用方 2.经方
     */
    @Column(comment = "类型 1.正方 2.附方")
    private Integer type;

    /**
     * 创建时间
     */
    @Column(comment = "创建时间")
    private LocalDateTime createDate;


    /**
     * 分类id
     */
    @Column(comment = "分类id")
    private Integer categoryId;
}
